
<template>

    <a-modal
        :bodyStyle="{maxHeight: maxHeight+'px', overflow: 'auto' }"
        :destroyOnClose="true"
        :title="title"
        :width="width"
        :visible="visible"
        :confirmLoading="confirmLoading"
        :maskClosable="true"
        @ok="ok"
        @cancel="cancel"
        v-drag
        cancelText="关闭"
        :ok-button-props="{ props: { shape:'round'} }"
        :cancel-button-props="{ props: { shape:'round'} }">
        
        
        <div class="table-page-search-wrapper">
           <!-- 这里放自己组件 -->
        </div>
   

    </a-modal>



    
</template>

<script>
import LTable from '@/components/lt/LTable'
import {SysMixin} from '@/mixins/SysMixin'
import defaultSettings from '@/config/defaultSettings'

export default {
    name:'selectPurchaseList',
    components:{LTable},
    mixins:[SysMixin],
    props:{
       
      
    },
    data(){
        return{
            defaultSettings,
            maxHeight:800,
            width:900,
            confirmLoading:false,
            visible:false,
            title:"标题",
           
      
        }
    },
    created(){
       
    },
    computed:{
       
    },
    watch:{
        
    },
    methods:{
       
        edit (record) {
            
            this.visible = true
            this.selectedRecord={}

        },
        ok(){
            let that = this
            that.$emit('selectPurchase',that.selectedRecord);
            that.close()
        
        },
        cancel(){
          
            this.visible=false
            this.$emit('handleCancel');
        },
        close () {
            this.$emit('close');
            this.visible = false;
        },
       
        emitChangeHandler(changeItem){
            this.$emit('handlerChange',changeItem);
        },
        emitClickHandler(field,form){
            this.$emit('handlerClick',field,form);
        },
        getForm(){
            return this.$refs.LForm.form
        },
       
    }

}
</script>

